Enum Class DocTypeEnum

java.lang.Object
java.lang.Enum<DocTypeEnum>
eu.europa.ec.taxud.cesop.domain.DocTypeEnum
All Implemented Interfaces:
Serializable, Comparable<DocTypeEnum>, java.lang.constant.Constable

public enum DocTypeEnum extends Enum<DocTypeEnum>
Enum for Doc Types.
  • Enum Constant Details

    • CESOP1

      public static final DocTypeEnum CESOP1
      Cesop 1 doc type enum.
    • CESOP2

      public static final DocTypeEnum CESOP2
      Cesop 2 doc type enum.
    • CESOP3

      public static final DocTypeEnum CESOP3
      Cesop 3 doc type enum.
  • Method Details

    • values

      public static DocTypeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static DocTypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
      Gets code.
      Returns:
      the code
    • findByCode

      public static DocTypeEnum findByCode(String code)
      Find a DocTypeEnum by its code.
      Parameters:
      code - the code
      Returns:
      the DocTypeEnum
      Throws:
      IllegalArgumentException - if there is no value for the code